package com.itheima.reflect;

public class ReflectDemo1 {
    public static void main(String[] args) throws ClassNotFoundException {
        Class class1 = Class.forName("com.itheima.reflect.Student");
        System.out.println("class1 = " + class1);

        Class class2 = Student.class;
        System.out.println("class2 = " + class2);

        Student s = new Student();
        Class class3 = s.getClass();
        System.out.println("class3 = " + class3);

        System.out.println(class1 == class2);
        System.out.println(class2 == class3);
    }
}
